package com.aboo.fusion;

import java.util.*;

import com.aboo.fusion.component.Categories;
import com.aboo.fusion.component.Chart;
import com.aboo.fusion.component.Dataset;
import com.aboo.fusion.component.Styles;
import com.aboo.fusion.component.TrendLines;

/**
 * @author hui
 * @Date 2012-11-19
 * @Desc MSColumn2D.swf 类
 */
public class MSColumn2D {

	/** 添加报表参数 */
	private Chart chart;
	/** x轴的lable数值 */
	private List<Categories> categories;
	/** 报表数据集 */
	private List<Dataset> dataSet;
	/** 趋势线 */
	private TrendLines trendLines;
	/** 自定义样式 */
	private Styles styles;

	/**
	 * 添加数据集
	 * 
	 * @param ds
	 *            前台数据dataSet
	 */
	public void addDataSet(Dataset ds) {
		if (dataSet == null) {
			dataSet = new ArrayList<Dataset>();
		}
		dataSet.add(ds);
	}

	/**
	 * x轴lable数值
	 * 
	 * @param cate
	 *            lable值
	 */
	public void addCategories(Categories cate) {
		if (categories == null) {
			categories = new ArrayList<Categories>();
		}
		categories.add(cate);
	}

	/** start getter and setter */
	public Chart getChart() {
		return chart;
	}

	public void setChart(Chart chart) {
		this.chart = chart;
	}

	public List<Categories> getCategories() {
		return categories;
	}

	public void setCategories(List<Categories> categories) {
		this.categories = categories;
	}

	public List<Dataset> getDataSet() {
		return dataSet;
	}

	public void setDataSet(List<Dataset> dataSet) {
		this.dataSet = dataSet;
	}

	public TrendLines getTrendLines() {
		return trendLines;
	}

	public void setTrendLines(TrendLines trendLines) {
		this.trendLines = trendLines;
	}

	public Styles getStyles() {
		return styles;
	}

	public void setStyles(Styles styles) {
		this.styles = styles;
	}
	/** end getter and setter */
}
